Skip to content

Fixes User Defined Toolchain clang type forgetfulness#1179

Merged
betamaxbandit merged 1 commit into
eclipse-cdt:mainfrom
betamaxbandit:clangType
Oct 9, 2025
Merged

Fixes User Defined Toolchain clang type forgetfulness#1179
betamaxbandit merged 1 commit into
eclipse-cdt:mainfrom
betamaxbandit:clangType

Conversation

@betamaxbandit

Copy link
Copy Markdown
Contributor

When a User Defined Toolchain of type clang was created (Preferences > C/C++ > Core Build Toolchains > User Defined Toolchains) the Type was reported correctly as clang. But after restarting the workbench the Type was reported as GCC. This is now fixed so the Type always shows as clang for a clang toolchain.

clang tc added - before workbench restart

@jonahgraham jonahgraham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@betamaxbandit LGTM - this can be merged once #1185 is ready

@jonahgraham jonahgraham added the build Build components of CDT, anything to do with running the compiler, using Make, CMake, or any builder label Oct 8, 2025
@jonahgraham

Copy link
Copy Markdown
Member

@betamaxbandit can you rebase and merge once it passes CI?

@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

Test Results

  584 files  ±0    584 suites  ±0   13m 54s ⏱️ +7s
9 887 tests ±0  9 863 ✅ ±0  24 💤 ±0  0 ❌ ±0 
9 917 runs   - 8  9 893 ✅  - 8  24 💤 ±0  0 ❌ ±0 

Results for commit 6a20cf9. ± Comparison against base commit 64842c0.

♻️ This comment has been updated with latest results.

When a User Defined Toolchain of type clang was created (Preferences >
C/C++ > Core Build Toolchains > User Defined Toolchains) the Type was
reported correctly as clang. But after restarting the workbench the Type
was reported as GCC. This is now fixed so the Type always shows as clang
for a clang toolchain.
@betamaxbandit

Copy link
Copy Markdown
Contributor Author

Manual Test:

  1. Open Preferences > C/C++ > Core Build Toolchains
  2. In User Defined Toolchains, click Add...
  3. In New Toolchain dialog Toolchain Type, choose "clang" and click Next.
  4. In New clang Toolchain Compiler, enter or browse to a locally installed clang compiler binary (eg on Windows this would be installpath\clang.exe)
  5. In Operating System add the OS, for example on Windows use win32.
  6. In CPU Architecture add the architecture, for example on Windows use x86_64.
  7. Click Finish.
  8. In the User Defined Toolchains table, a new entry for the added complier appears with Type "clang".
  9. Click Apply and Close.
  10. Restart the workbench.
  11. Open Preferences > C/C++ > Core Build Toolchains
  12. In the User Defined Toolchains table, confirm the previoulsy added compiler is present and reports Type as "clang".

@betamaxbandit

Copy link
Copy Markdown
Contributor Author

I have rebased this now.
The License check is failing with an HTTP 504 Gateway Timeout error, which I am ignoring. It did not fail previously.

@betamaxbandit betamaxbandit merged commit fe35b9f into eclipse-cdt:main Oct 9, 2025
4 of 5 checks passed
@betamaxbandit betamaxbandit deleted the clangType branch October 9, 2025 10:11
@jonahgraham jonahgraham added this to the 12.3.0 milestone Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build components of CDT, anything to do with running the compiler, using Make, CMake, or any builder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants